package org.gd.hellospring.events;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @author Gorhover
 * @version 1.0-SNAPSHOT
 * @since 2013-11-04 17:29
 */
@Component
public class AppEventListener implements ApplicationListener<MessageEvent> {

    @Override
    public void onApplicationEvent(MessageEvent event) {
        System.out.println(event.getMessage());
    }
}
